package com.example.bootdemo.service;

import com.example.bootdemo.entity.Test;
import com.example.bootdemo.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestService {

    private final TestMapper testMapper;

    public TestService(TestMapper testMapper) {
        this.testMapper = testMapper;
    }

    public List<Test> getAllUsers() {
        List<Test> list = testMapper.selectList(null);
        return list;
    }

}
